package com.hyfrogx.modules.operation.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hyfrogx.common.utils.QueryExt;
import com.hyfrogx.modules.operation.entity.HyAppPushEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @author liubin
 * @date 2019/4/1 15:09
 */
@Mapper
public interface HyAppPushDao extends BaseMapper<HyAppPushEntity> {
    /**
     *获得推送消息的历史记录
     * @param query
     * @param map
     * @return
     */
    List<HyAppPushEntity> getAppPushRecordByPage(QueryExt query, Map map);



    /**
     * 根据ID获得消息的详情
     * @param id
     * @return
     */
    HyAppPushEntity getAppPushById(Integer id);

    /**
     * 客户端获取ios/安卓全推消息列表
     * @param query
     * @return
     */
    List<HyAppPushEntity>  selectSingleMessageByChannel(QueryExt query, Map map);

    /**
     * 客户端获取单推消息列表
     * @param query
     * @param map
     * @return
     */
    List<HyAppPushEntity> selectMessageByDisplayUid(QueryExt query, Map map);

    /**
     * 客户端获取所有消息列表
     * @param query
     * @param map
     * @return
     */
    List<HyAppPushEntity> selectAllMessage(QueryExt query, Map map);
}

